<template>
  <div id="add-course-selection">
    <div class="manual-entry-container">
      <div>
        <ul>
          <li>
            <span class="active">批次名称<span>*</span></span>
            <div class="cdmc">
              <el-input v-model="batchName" size="mini"></el-input>
            </div>
          </li>
          <li>
            <span class="active">选课学期<span>*</span></span>
            <div>
              <el-select
                v-model="ElectiveSemester"
                placeholder="请选择"
                size="mini"
              >
                <el-option
                  v-for="(item, index) in ElectiveSemesterList"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                >
                </el-option>
              </el-select>
            </div>
          </li>
          <li>
            <span class="active">选课负责人</span>
            <div class="cdmc">
              <span>{{ chargePerson }}</span
              ><i class="el-icon-edit edit-icon" @click="editChargePerson"></i>
            </div>
          </li>
          <li>
            <span class="active" style="height: 140px">选课时间</span>
            <div>
              <el-date-picker
                value-format="yyyy-MM-dd HH:mm:ss"
                size="samll"
                v-model="selectionTime1"
                type="datetime"
                placeholder="选择日期时间"
                default-time="12:00:00"
              >
              </el-date-picker>
              --
              <el-date-picker
                value-format="yyyy-MM-dd HH:mm:ss"
                size="samll"
                v-model="selectionTime2"
                type="datetime"
                placeholder="选择日期时间"
                default-time="12:00:00"
              >
              </el-date-picker>
            </div>
          </li>
          <li>
            <span class="active" style="height: 140px">本次选课限制</span>
            <div class="xkxx">
              <div>所选课程不超过</div>
              <el-input
                size="mini"
                v-model="limitCourse"
                style="width: 100px !important; margin: 5px"
              ></el-input>
              <div>分，所选的门数不超过</div>
              <el-input
                size="mini"
                v-model="limitNumber"
                style="width: 100px !important; margin: 5px"
              ></el-input>
              <div>门</div>
            </div>
          </li>
        </ul>
      </div>
      <div class="btn-caozuo">
        <el-button type="warning" size="mini" plain @click="toSave">保存</el-button>
        <el-button type="danger" size="mini" plain @click="toCancel">取消</el-button>
      </div>
    </div>
    <el-dialog
      title="选课负责人"
      :visible.sync="editChargePersonDialog"
      width="1200px"
      class="xzjy"
    >
      <div>
        <el-row>
          <el-col :span="4" class="tree">
            <!--<el-tree-->
              <!--default-expand-all-->
              <!--:data="data"-->
              <!--:props="defaultProps"-->
              <!--@node-click="handleNodeClick"-->
              <!--style="color: #004ca7;font-weight: bold;background: #f0f2f5;"-->
            <!--&gt;</el-tree>-->
            <el-tree
              default-expand-all
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
              style="
                color: #004ca7;
                font-weight: bold;
                background: #f0f2f5;
              "
            ></el-tree>
          </el-col>
          <el-col :span="20" style="border-left: 1px solid #004ca7">
            <div
              class="wrapper-container"
              style="display: flex; flex-direction: column; width: 100%"
            >
              <div class="search-container">
                <div class="search-container-left">
                  <div
                    class="search-container-item xkfzr"
                    v-for="(select, index) in selectList_Teacher"
                    :key="index"
                  >
                    <div v-if="select.type === 'btn'" class="box">
                      <span class="demonstration" v-show="select.name">{{
                        select.name
                      }}</span>
                      <el-input
                        v-model="select.val"
                        placeholder="请输入内容"
                      ></el-input>
                    </div>
                  </div>

                  <div class="search-button">
                    <img
                      src="../../../../../assets/assessment/icon-search.png"
                      alt=""
                    />
                    <span @click="queryInfo">查询</span>
                  </div>

                  <div class="select-list">
                    <div class="yx">已选：</div>
                    <div class="cont">
                      <div
                        v-for="(item, index) in multipleSelection"
                        :key="index"
                        class="tip"
                      >
                        {{ item.xm }}
                      </div>
                    </div>
                  </div>
                </div>
              </div>

              <div class="assessment-container" style="width: 100%">
                <div
                  class="table-container"
                  style="width: 95%; margin: 20px auto 0"
                >
                  <el-table
                    :data="tableData_People"
                    border
                    class="table-data"
                    row-class-name="row-class"
                    cell-class-name="cell-class"
                    header-row-class-name="header-row-class"
                    header-cell-class-name="header-cell-class"
                    style="height: 380px; overflow-y: auto"
                    @selection-change="handleSelectionChange"
                  >
                    <el-table-column align="center" type="selection" width="80">
                    </el-table-column>
                    <el-table-column prop="bh" label="编号" align="center">
                    </el-table-column>
                    <el-table-column prop="xm" label="姓名" align="center">
                    </el-table-column>
                    <el-table-column prop="xb" label="性别" align="center">
                    </el-table-column>
                    <el-table-column prop="jszc" label="职称" align="center">
                    </el-table-column>
                    <el-table-column
                      prop="lb"
                      label="类别"
                      align="center"
                    >
                    </el-table-column>
                    <el-table-column
                      prop="gwbzlb"
                      label="岗位编制类别"
                      align="center"
                    >
                    </el-table-column>
                  </el-table>
                </div>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button type="warning" size="mini" plain @click="handleSave">保存</el-button>
        <el-button type="danger" size="mini" plain @click="cancelDiaog">取消</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {addKcpi, queryCommonXueqi, teacherTree, allTeacherList, queryCommonDeptByCategory} from "@/api/trainingManagement/place.js";
import ButtonItem from "@/components/ButtonItem.vue";
export default {
  components: {
    ButtonItem,
  },
  name: "",
  data() {
    return {
      xm: '',
      xi: '',
      jys: '',
      selectTreeNode: {}, //点击树节点

      batchName: "", //批次名称
      ElectiveSemester: "", //选课学期
      ElectiveSemesterList: [], //选择列表

      chargePerson: "", //选课负责人
      selectionTime1: "", //选课时间
      selectionTime2: "", //选课时间
      limitCourse: "", //本次选课限制
      limitNumber: "", // 本次选课限制
      editChargePersonDialog: false, //选课负责人
      // 校区列表
      data: [],
      defaultProps: {
        children: "children",
        label: "name",
      },
      tableData_People: [], //调整后教员表格
      selectList_Teacher: [
        {
          type: "btn",
          name: "搜 索：",
          val: "",
        },
      ],
      // 选择列表数据
      multipleSelection: [],
    };
  },
  mounted(){
    this.teacherTreeInfo();
    this.queryCommonXueqi();
    this.queryTeacherList();
  },
  methods: {
    teacherTreeInfo(){
      // teacherTree("").then(res=>{
      //   if(res.data.code == 200){
      //     console.log('====', res.data.data)
      //     this.data = res.data.data
      //   }
      // })
      queryCommonDeptByCategory(7).then(res=>{
        if (res.data.code == 200) {
          this.data = res.data.data;
          // this.selectTreeNode = this.data[0];
          this.queryTeacherList();
        }
      })
    },
    queryTeacherList(){
      let data = {
        "xm":this.xm,
        "xi":this.xi,
        "jys":this.jys
      }
      allTeacherList(data).then(res=>{
        if(res.data.code == 200){
          this.tableData_People = res.data.data;
        }
      })
    },
    // 获取学期列表
    async queryCommonXueqi() {
      const res = await queryCommonXueqi();
      if (res.data.code == 200) {
        this.ElectiveSemesterList= res.data.data;
      }
    },
    handleSave(){
      if(this.multipleSelection.length <= 0){
        this.$message.warning('请选择选课负责人')
        return;
      }

      if(this.multipleSelection.length > 1){
        this.$message.warning('选课负责人只能有一位')
        return;
      }
      // let tempTeacherArray = []
      // this.multipleSelection.forEach(item=>{
      //   tempTeacherArray.push(item.xm)
      // })
      // this.chargePerson = tempTeacherArray.toString()
      this.chargePerson = this.multipleSelection[0].xm
      this.editChargePersonDialog = false;
    },
    toSave() {
      if(this.batchName == ''){
        this.$message.warning('批次名称不能为空')
        return;
      }
      if(this.ElectiveSemester == ''){
        this.$message.warning('选课学期不能为空')
        return;
      }
      if(this.chargePerson == ''){
        this.$message.warning('选课负责人不能为空')
        return;
      }

      let data = {
        name: this.batchName,
        xueqi: this.ElectiveSemester,
        xkfzr: this.chargePerson,
        startTime: this.selectionTime1,
        endTime: this.selectionTime2,
        fractionLimit: this.limitCourse,
        chooseLimit: this.limitNumber
      }
      addKcpi(data).then(res=>{
        if(res.data.code == 200){
          this.$message.success('添加选课批次成功')
          this.$router.push("/admin/course/selection/courseBatchManagement")
        }
      })

    },
    toCancel() {
      this.$router.push("/admin/course/selection/courseBatchManagement");
    },
    submitDialog() {
      this.cancelDiaog();
    },
    cancelDiaog() {
      this.editChargePersonDialog = false;
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
    },
    // 修改选课负责人
    editChargePerson() {
      this.editChargePersonDialog = true;
    },
    // 数据查询
    queryInfo() {
      this.xm = this.selectList_Teacher[0].val
      this.queryTeacherList()
    },
    handleNodeClick(data,node) {
      if(node.level == 2){
        this.xi = node.parent.data.name;
        this.jys = data.name;
      }
      if(node.level == 1){
        this.xi = data.name;
        this.jys = '';
      }
      this.queryTeacherList()
    },
  },
};
</script>

<style scoped lang="less">
.manual-entry-container {
  > div:nth-child(1) {
    width: calc(100% - 20px);
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        display: flex;
        align-items: center;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 100px;
          padding-top: 40px;
          vertical-align: middle;
          &:nth-child(n) {
            width: 357px;
          }
          &:nth-child(2n) {
            width: 444px;
          }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: red;
          }
        }
        > div {
          width: 800px;
          margin-left: 100px;
        }
      }
      &:nth-child(1) {
        li {
          > span {
            height: 100px;
          }
          > div {
            width: 800px;
            margin-left: 100px;
          }
        }
      }
      &:nth-child(3) {
        li {
          border-bottom: 1px solid rgba(0, 76, 167, 0.4);
          display: flex;
          align-items: center;
          > span {
            width: 400px;
            text-align: center;
            padding-left: 0;
            height: 60px;
            &:nth-child(1) {
              width: 144px;
            }
            &:nth-child(2) {
              width: 180px;
            }
            &:nth-child(3) {
              width: 289px;
            }
            &:nth-child(4) {
              width: 196px;
            }
            &:nth-child(5) {
              width: 197px;
            }
            &:nth-child(6) {
              width: 197px;
            }
            &:nth-child(7) {
              width: 198px;
              padding-top: 8px !important;
              > span {
                display: inline-block;
                width: 121px;
                height: 28px;
                border: 1px solid #5230e9;
                background: rgba(235, 230, 255, 1);
                opacity: 1;
                border-radius: 4px;
                font-size: 14px;
                font-weight: 400;
                color: #5230e9;
                line-height: 18px;
                margin-top: 8px;
                padding: 5px 10px;
                cursor: pointer;
              }
            }
            &:nth-child(8) {
              width: 150px;
            }
            &:nth-child(9) {
              width: 182px;
            }
            &.active {
              border-top: 1px solid rgba(0, 76, 167, 0.4);
              height: 73px;
              padding-top: 25px;
            }
          }
          &:nth-child(2) {
            > div {
              height: 57px;
              padding: 18px 30px;
              > span {
                &:nth-child(1) {
                  font-size: 16px;
                  font-weight: bold;
                  color: #004ca7;
                }
                &:nth-child(2) {
                  font-size: 14px;
                  color: #004ca7;
                }
              }
            }
          }
        }
      }
    }
    > div {
      padding: 14px 83px;
      height: 78px;
      > div:nth-child(1) {
        font-size: 16px;
        font-weight: bold;
        color: #004ca7;
        margin-bottom: 10px;
      }
      > div:nth-child(2) {
        > span {
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          margin-right: 57px;
          > span {
            color: rgba(255, 56, 25, 1);
          }
        }
      }
    }
  }
  .button-group {
    text-align: center;
    margin-top: 36px;
    > div {
      display: inline-block;
      padding: 6px 20px;
      background: rgba(255, 246, 239, 1);
      border: 1px solid rgba(243, 184, 21, 1);
      border-radius: 4px;
      font-size: 18px;
      font-weight: 400;
      color: rgba(243, 184, 21, 1);
      text-align: center;
    }
  }
  .select-show {
    height: 150px;
    width: 420px;
    overflow: auto;
    // border: 1px solid rgba(0, 76, 167, 0.8);

    .select-row {
      display: flex;
      margin: 10px 0;
      .text {
        border: 1px solid rgba(0, 76, 167, 0.8);
        padding: 2px 10px;
        border-radius: 5px;
        color: rgba(0, 76, 167, 0.8);
      }

      .edit-icon {
        color: #f5866a;
        display: flex;
        align-items: center;
        margin-left: 10px;
        cursor: pointer;
        font-size: 22px;
      }
    }
  }

  .select-major {
    display: flex;
    align-items: center;
    margin: 10px 0;
  }
}
.top-title {
  margin-top: 30px;
  margin-bottom: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #004ca7;
  > span {
    color: #ff3819;
  }
}
.btn-caozuo {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 800px;
  margin: 0 auto;
  padding-top: 50px;
}
/deep/ .el-input {
  width: 200px !important;
}

.cdmc {
    color: #004ca7;
  .edit-icon {
    font-size: 20px;
    color: #02c86c;
    margin-left: 10px;
    cursor: pointer;
  }
}

.time-select {
  height: 300px;
  padding: 20px 40px;
  margin: 0 !important;
  width: 850px !important;
  /deep/ .el-input {
    width: 150px !important;
  }
  > div {
    margin: 25px;
  }
}

.time3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  > span {
    font-size: 16px;
    color: #004ca7;
  }

  .mini-input {
    /deep/ .el-input {
      width: 50px !important;
    }
  }
}
</style>
<style lang="less" scoped>
// .assessment-container {
.el-dialog__body {
  // height: 251px;
  .assessment-container {
    width: 100%;
    .table-container {
      height: 380px;
      overflow-y: auto;
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
}
.el-dialog__footer {
  padding: 10px 20px 45px;
}
.el-checkbox__inner:hover {
  border-color: #004ca7;
}
.el-checkbox__inner {
  border: 1px solid #004ca7;
  border-radius: 0;
  height: 18px;
  width: 18px;
}
.el-checkbox__inner::after {
  height: 10px;
  left: 6px;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #004ca7;
  border-color: #004ca7;
}
.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #004ca7;
}
.el-checkbox.is-bordered.is-checked {
  border-color: #004ca7;
}
.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: #004ca7;
}

.xkxx {
  display: flex;
  align-items: center;
  color: #004ca7;
}
</style>

<style lang="less" scoped>
@import "../../../../../styles/text.less";
.assessment-container .table-container {
  // overflow: scroll;
}
.assessment-container .table-container .table-header {
  width: 1935px;
}
.assessment-container .table-container .table-body {
  width: 1935px;
}
/deep/ .szjky .el-dialog__body {
  height: 432px;
}
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
</style>
<style lang="less" scoped>
@import "../../../../../styles/supervision.less";

.wrapper-container {
  width: 1711px;
  margin: 0 auto;
}

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  width: 100%;
  flex-wrap: wrap;
  .search-container-item {
    width: 12%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      margin-bottom: 20px;
      align-items: center;
    }
  }
}

.xzjy {
  /deep/ .el-dialog {
    height: 700px;
  }
  /deep/.el-date-editor.el-input {
    width: 110px;
  }
  /deep/ .el-input--medium {
    width: 110px;
    .el-input__inner {
      height: 28px;
      width: 110px;
      padding: 0px 18px;
    }
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  // display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}

.search-button {
  width: 77px;
  height: 28px;
  line-height: 28px;
  background: #f1f8fe;
  border: 1px solid #51aef6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  > span {
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  > img {
    width: 20px;
    height: 20px;
    margin-right: 4px;
  }
}

.mar-lef-2 {
  margin-left: 20px;
}
.undeLine {
  text-decoration: underline;
  cursor: pointer;
}

.edit-icon {
  font-size: 20px;
  color: #02c86c;
  margin-left: 10px;
  cursor: pointer;
}

.body-manual-container {
  > div:nth-child(1) {
    width: 1200px;
    // height: 785px;
    border: 1px solid rgba(0, 76, 167, 0.8);
    border-radius: 6px;
    margin: 30px auto 0;
    ul {
      list-style: none;
      li {
        border-bottom: 1px solid rgba(0, 76, 167, 0.4);
        height: auto;
        > span {
          box-sizing: border-box;
          display: inline-block;
          font-size: 14px;
          color: rgba(0, 76, 167, 1);
          padding-left: 54px;
          border-right: 1px solid rgba(0, 76, 167, 0.4);
          height: 60px;
          padding-top: 20px;
          vertical-align: middle;
          &:nth-child(n) {
            // width: 357px;
            width: 290px;
          }
          // &:nth-child(2n) {
          // 	width: 444px;
          // }
          &:last-child {
            border-right: none;
          }
          &.active {
            font-size: 16px;
            color: rgba(0, 76, 167, 1);
            font-weight: bold;
            background: rgba(77, 129, 192, 0.1);
            text-align: center;
            padding-left: 0;
          }
          > span {
            color: rgba(255, 56, 25, 1);
          }
          > div {
            width: 100%;
          }
        }
      }
    }
  }
}

.add-icon {
  font-size: 28px;
  color: #f3b815;
  margin-left: 10px;
  cursor: pointer;
}

.date-select {
  height: 100%;
  padding: 0;
  padding-left: 40px;
  overflow-y: auto;
  width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-select-show {
  height: 100%;
  width: 500px;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.class-tip {
  color: #004ca7;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px;
}

.tip-text {
  color: #004ca7;
  margin-left: 5px;
  font-size: 16px;
}

/deep/ .xzjy .el-dialog__body {
  padding: 0 !important;
  .wrapper-container {
    width: 100% !important;
  }
  .wrapper-container .search-container .search-container-left {
    margin-left: 20px;
    flex-wrap: wrap;
    .search-container-item {
      width: 200px;
      margin-right: 10px;
      .box {
        > span {
          text-align: left;
          width: 80px;
        }
        display: flex;
        justify-content: space-evenly;
        margin-bottom: 20px;
        align-items: center;
      }
    }
  }
}

/deep/ .el-tree-node__expand-icon.expanded {
  color: rgb(0, 76, 167);
}

.xzjy .tree {
  padding: 30px;
  color: rgb(0, 76, 167);
  font-weight: bold;
  font-size: 16px;
}

.select-list {
  display: flex;
  width: 650px;
  color: #004ca7;

  .yx {
    font-size: 18px;
    padding-left: 10px;
  }
  .cont {
    width: 580px;
    display: flex;
    overflow: auto;

    .tip {
      font-size: 18px;
      margin: 0 5px;
    }
  }
}

.xkfzr {
  /deep/ .el-input__inner {
    height: 28px;
  }
}
</style>

<style lang="less" scoped>
  #add-course-selection{
    /deep/ .el-button--warning.is-plain{
      background: #FFF6EF;
      border-color: #F3B815;
      color: #F3B815;
      border-radius: 6px;
    }
    /deep/ .el-button--warning.is-plain:focus, .el-button--warning.is-plain:hover{
      color: #F3B815;
      background: #FFF6EF;
      border: 1px solid #F3B815;
      border-radius: 6px;
    }

    /deep/ .el-button--success.is-plain{
      background: #F1FFF8;
      border-color: #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }
    /deep/ .el-button--success.is-plain:hover{
      background: #F1FFF8;
      border: 1px solid #02C86C;
      color: #02C86C;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain{
      background: #F1F8FE;
      border-color: #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--primary.is-plain:hover{
      background: #F1F8FE;
      border: 1px solid #51AEF6;
      color: #51AEF6;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain{
      background: #FFEFEF;
      border-color: #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }

    /deep/ .el-button--danger.is-plain:hover{
      background: #FFEFEF;
      border: 1px solid #FF3819;
      color: #FF3819;
      border-radius: 6px;
    }
  }
</style>
